<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //splice 增减 删除 替换 数组的任意位置
        let arr = [1, 2, 3, 4, 5];

        let het = arr.splice(1, 3);
        console.log(het);

        console.table(arr);
        // let hd = arr.slice(1, 3);
        // console.table(hd);
    </script>
</body>

</html>